const router = [
  {
    path: '/',
    redirect: '/login',
    meta: {
      deepth: 0.5,
    },
  },
  {
    //登录页
    path: '/login',
    name: 'Login',
    component: () => import('@/views/home/Login.vue'),
    // 升级页面
    // component: () =>
    //   import ('@/views/home/Upgrade.vue'),
    meta: {
      deepth: 0.5,
    },
  },
  {
    //首页
    path: '/home',
    name: 'Home',
    component: () => import('@/views/home/Home.vue'),
    meta: {
      deepth: 0.5,
      // keepAlive: true
    },
  },

  // 个人信息
  {
    path: '/my',
    name: 'My',
    component: () => import('@/views/personal/My.vue'),
  },
  // 隐私协议
  {
    path: '/privacy',
    name: 'Privacy',
    component: () => import('@/views/personal/Privacy.vue'),
  },

  // 版本说明
  {
    path: '/version',
    name: 'Version',
    component: () => import('@/views/personal/Version.vue'),
  },
  // PDF预览组件
  {
    path: '/pdfView',
    name: 'PdfView',
    component: () => import('@/components/PdfView.vue'),
    meta: {
      deepth: 4,
    },
  },
  //联系我们
  {
    path: '/Contact',
    name: 'contact',
    component: () => import('@/views/contact/Contact.vue'),
    meta: {
      deepth: 3,
    },
  },
  // 修改密码
  {
    path: '/password',
    name: 'password',
    component: () => import('@/views/personal/password.vue'),
  },
]

export default router
